<!DOCTYPE html>
<html>
    <head>
        <title>数组分块 - chunk的实现</title>
        <script src="../../src/array/chunk.js"></script>
    </head>
    <doby>
        <script>
            const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]
            const result = chunk(arr, 3)
            console.log(result) // [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
        </script>
    </doby>
</html>